﻿using System.Threading.Tasks;
using Sino.CarGoCome.Core;
using Sino.CarGoCome.Model;
using Sino.CapacityCloud.WebApi;

namespace Sino.CarGoCome.VirtualCoreData
{
    public class MockBankCardService : IBankCardService
    {
        public async Task<BankCardListResponse> GetMyBankCardsAsync()
        {
            return new BankCardListResponse()
            {
                BankCards = new[]
                {
                    new BankCard()
                    {
                        Id = "1",
                        Number = "6222020903001483077",
                        BankName = "工商银行",
                        BankImage = "http://apimg.alipay.com/combo.png?d=cashier&t=ICBC"
                    },
                    new BankCard()
                    {
                        Id = "2",
                        Number = "6222004000118479070",
                        BankName = "工商银行",
                        BankImage = "http://apimg.alipay.com/combo.png?d=cashier&t=ICBC"
                    },
                    new BankCard()
                    {
                        Id = "3",
                        Number = "6228430120000000000",
                        BankName = "农业银行",
                        BankImage = "http://apimg.alipay.com/combo.png?d=cashier&t=ABC"
                    }
                }
            };
        }

        public async Task<BankCardInfoResponse> AddBankCardAsync(string accountName, string bankCardNumber)
        {
            return new BankCardInfoResponse()
            {
                Card =
                    new BankCard()
                    {
                        Id = "4",
                        Number = "6227002920700184229",
                        BankName = "建设银行",
                        BankImage = "http://apimg.alipay.com/combo.png?d=cashier&t=CCB"
                    }
            };
        }

        public async Task<VoidResponse> DeleteBankCardAsync(string bankCardId)
        {
            return new VoidResponse();
        }
    }
}
